<?php

require_once('bootstrap.php');
require_once('lib/spyc/spyc.php');

include_once('classes/PageMaker.php');
include_once('classes/MetaModel.php');
include_once 'classes/PageMakerSet.php';
include_once 'classes/TestPageMaker.php';

$mm = new MetaModel(887);

//$mm->DumpCrudsets();
//$ar_project_data = $mm->GetProjectData();
//$mm->LoadDatabaseTables();
//MetaModel::DumpCrudSets();
//print_r($ar_project_data);

//$mm->AddTableVarsToSet(423);

$pm = new TestPageMaker(887);
$pm->SetProject(1);
$pm->SetCrudset(3);

$ar_replace = $pm->GetReplacements();
echo '<pre>';
print_r($ar_replace);
echo '</pre>';
$str_start_file = file_get_contents('testreplacestuff.php');
//$pm->ReplaceInPlace($str_start_file,'%','/*','*/');

$pm->DoReplacement('output.php','output.php',true);
?>
